package org.compression.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.model.auth.Group;
@Mapper
public interface GroupMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Group record);

    int insertSelective(Group record);

    Group selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Group record);

    int updateByPrimaryKey(Group record);
    
    public List<Group> getGroups(@Param("startIndex")long startIndex,@Param("endIndex")long endIndex);
    
    @Select("select count(*) from sm_group")
    public long  getTotal();
    
    
}